﻿CREATE TRIGGER LoanFeasabilityStudy_Tracking_Delete
ON [dbo].[LoanFeasabilityStudy] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanFeasabilityStudy_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanFeasabilityStudy_Tracking s JOIN DELETED i
    ON s.LoanFeasabilityStudyID = i.LoanFeasabilityStudyID
END














